#include "app.h"

#include <memory>

#include <player.h>


App::App(/* args */)
{
}

App::~App()
{
}


App& App::GetIns(){
    static App app;
    return app;
}

void App::InitMainPlayer(int player_id, int socket_fd){
    main_player_ = std::make_shared<Player>(player_id, socket_fd);
}

std::shared_ptr<Player> App::GetMainPlayer(){
    return main_player_;
}